package com.efun.framework.beetlsql;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.beetl.sql.ext.spring4.SqlManagerFactoryBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import javax.annotation.PostConstruct;

/**
 * @author kinven on 17/8/14.
 */
@Configuration
@Import({ MapperScannerRegistrar.class })
@ConditionalOnMissingBean(SqlManagerFactoryBean.class)
public class MapperScannerRegistrarNotFoundConfiguration {

    private static final Log logger = LogFactory.getLog(BeetlSqlAutoConfiguration.class);
    @PostConstruct
    public void afterPropertiesSet() {
        logger.info("No  " + SqlManagerFactoryBean.class.getName() + " found.");
    }
}
